package java2;

import java.util.regex.Pattern;

public class a8 {
	private static Pattern jo=Pattern.compile("0-9+");
	public static void main(String[] args){
		String jo1="12345";
		String jo2="22a67";
		System.out.println(jo.matcher(jo1).matches());
		System.out.println(jo.matcher(jo2).matches());
				
	}
}
